import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home/Home'
import Class from '@/components/Home/Class'
import Shopcar from '@/components/Home/Shopcar'
import My from '@/components/Home/My'
import Goods from '@/components/Home/Goods'
import Settlement from '@/components/Home/Settlement'
import UserCenter from '@/components/Home/UserCenter'
import Login from '@/components/Home/Login'
import Details from '@/components/Home/Details'
import Reg from '@/components/Home/Reg'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/class',
      name: 'Class',
      component: Class
    },
    {
      path: '/my',
      name: 'My',
      component: My
    },
    {
      path: '/shopcar',
      name: 'Shopcar',
      component: Shopcar
    },
    {
      path: '/goods',
      name: 'Goods',
      component: Goods
    },
    {
      path: '/settlement',
      name: 'Settlement',
      component: Settlement
    },
    {
      path: '/userCenter',
      name: 'UserCenter',
      component: UserCenter
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/details',
      name: 'Details',
      component: Details
    },
    {
      path: '/reg',
      name: 'Reg',
      component: Reg
    }
  ]
})
